package com.dhcc.cdc.busi.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;

import java.util.Date;


/**
 * 手术
 * 
 * @ClassName: CdcSurgeryEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:06
 */
@TableName("t_cdc_bs_surgery") 
public class CdcSurgeryEntity extends DataEntity<CdcSurgeryEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	//索引码
	private String xcode;	
	//就诊记录
	private Long episodeId;	
	//描述
	private String description;	
	//编码
	private String code;	
	//类型
	private Long busSurgTypeId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busSurgType;
	//状态
	private Long busSurgStatusId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busSurgStatus;
	//手术开始日期
    @JSONField(format="yyyy-MM-dd")
	private Date startDate;	
	//手术结束日期
    @JSONField(format="yyyy-MM-dd")
	private Date endDate;	
	//科室
	private Long surgLocId;	
    @TableField(exist = false)
    private CdcLocationEntity surgLoc;
	//主刀医生
	private Long surgDocId;	
    @TableField(exist = false)
    private CdcUserEntity surgDoc;
	//一助
	@TableField("assi_1st")
	private String assi1st;
	//二助
	@TableField("assi_2nd")
	private String assi2nd;
	//切口等级
	private Long busSurgInciId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busSurgInci;
	//愈合情况
	private Long busSurgHealId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busSurgHeal;
	//麻醉方式
	private Long busSurgAnesId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busSurgAnes;
	//麻醉医生
	private String anesDoc;
	//ASA评分
	private String asaScore;	
	//NNIS分级
	private String nnisGrade;	
	//术前外周WBC计数
	private Integer wbcCount;	
	//切口个数
	private Integer inciCount;	
	//是否使用窥镜
	private Integer isEndoscope;	
	//是否有植入物
	private Integer isImplants;
	//是否急诊手术
	private Integer isEmergency;
	//失血量
	private String bloodLose;	
	//输血量
	private String bloodGet;	
	//术后并发症
	private String complication;	
    
	//来源
	private Long busSurgSourceId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busSurgSource;	
	public Long getBusSurgSourceId() {
        return busSurgSourceId;
    }
    public void setBusSurgSourceId(Long busSurgSourceId) {
        this.busSurgSourceId = busSurgSourceId;
    }
    public CdcDictionaryEntity getBusSurgSource() {
        return busSurgSource;
    }
    public void setBusSurgSource(CdcDictionaryEntity busSurgSource) {
        this.busSurgSource = busSurgSource;
    }
    //业务数据类型
	private Long dataId;	
    @TableField(exist = false)
    private CdcDataEntity data;
	//是否有效
	private Integer isActive;
	//胎儿娩出日期时间
	@JSONField(format="yyyy-MM-dd")
	private Date childBirthDate;

	/**
	 * 设置：就诊记录
	 */
	public void setEpisodeId(Long episodeId) {
		this.episodeId = episodeId;
	}
	
	public String getXcode() {
		return xcode;
	}
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
	/**
	 * 获取：就诊记录
	 */
	public Long getEpisodeId() {
		return episodeId;
	}
	/**
	 * 设置：描述
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 获取：描述
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 设置：编码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：编码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：类型
	 */
	public void setBusSurgTypeId(Long busSurgTypeId) {
		this.busSurgTypeId = busSurgTypeId;
	}
	/**
	 * 获取：类型
	 */
	public Long getBusSurgTypeId() {
		return busSurgTypeId;
	}
	/**
	 * 设置：状态
	 */
	public void setBusSurgStatusId(Long busSurgStatusId) {
		this.busSurgStatusId = busSurgStatusId;
	}
	/**
	 * 获取：状态
	 */
	public Long getBusSurgStatusId() {
		return busSurgStatusId;
	}
	/**
	 * 设置：手术开始日期
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	/**
	 * 获取：手术开始日期
	 */
	public Date getStartDate() {
		return startDate;
	}
	/**
	 * 设置：手术结束日期
	 */
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	/**
	 * 获取：手术结束日期
	 */
	public Date getEndDate() {
		return endDate;
	}
	/**
	 * 设置：科室
	 */
	public void setSurgLocId(Long surgLocId) {
		this.surgLocId = surgLocId;
	}
	/**
	 * 获取：科室
	 */
	public Long getSurgLocId() {
		return surgLocId;
	}
	/**
	 * 设置：主刀医生
	 */
	public void setSurgDocId(Long surgDocId) {
		this.surgDocId = surgDocId;
	}
	/**
	 * 获取：主刀医生
	 */
	public Long getSurgDocId() {
		return surgDocId;
	}
	/**
	 * 设置：一助
	 */
	public void setAssi1st(String assi1st) {
		this.assi1st = assi1st;
	}
	/**
	 * 获取：一助
	 */
	public String getAssi1st() {
		return assi1st;
	}
	/**
	 * 设置：二助
	 */
	public void setAssi2nd(String assi2nd) {
		this.assi2nd = assi2nd;
	}
	/**
	 * 获取：二助
	 */
	public String getAssi2nd() {
		return assi2nd;
	}
	/**
	 * 设置：切口等级
	 */
	public void setBusSurgInciId(Long busSurgInciId) {
		this.busSurgInciId = busSurgInciId;
	}
	/**
	 * 获取：切口等级
	 */
	public Long getBusSurgInciId() {
		return busSurgInciId;
	}
	/**
	 * 设置：愈合情况
	 */
	public void setBusSurgHealId(Long busSurgHealId) {
		this.busSurgHealId = busSurgHealId;
	}
	/**
	 * 获取：愈合情况
	 */
	public Long getBusSurgHealId() {
		return busSurgHealId;
	}
	/**
	 * 设置：麻醉方式
	 */
	public void setBusSurgAnesId(Long busSurgAnesId) {
		this.busSurgAnesId = busSurgAnesId;
	}
	/**
	 * 获取：麻醉方式
	 */
	public Long getBusSurgAnesId() {
		return busSurgAnesId;
	}
	/**
	 * 设置：麻醉医生
	 */
	public void setAnesDoc(String anesDoc) {
		this.anesDoc = anesDoc;
	}
	/**
	 * 获取：麻醉医生
	 */
	public String getAnesDoc() {
		return anesDoc;
	}
	/**
	 * 设置：ASA评分
	 */
	public void setAsaScore(String asaScore) {
		this.asaScore = asaScore;
	}
	/**
	 * 获取：ASA评分
	 */
	public String getAsaScore() {
		return asaScore;
	}
	/**
	 * 设置：NNIS分级
	 */
	public void setNnisGrade(String nnisGrade) {
		this.nnisGrade = nnisGrade;
	}
	/**
	 * 获取：NNIS分级
	 */
	public String getNnisGrade() {
		return nnisGrade;
	}
	/**
	 * 设置：术前外周WBC计数
	 */
	public void setWbcCount(Integer wbcCount) {
		this.wbcCount = wbcCount;
	}
	/**
	 * 获取：术前外周WBC计数
	 */
	public Integer getWbcCount() {
		return wbcCount;
	}
	/**
	 * 设置：切口个数
	 */
	public void setInciCount(Integer inciCount) {
		this.inciCount = inciCount;
	}
	/**
	 * 获取：切口个数
	 */
	public Integer getInciCount() {
		return inciCount;
	}
	/**
	 * 设置：是否使用窥镜
	 */
	public void setIsEndoscope(Integer isEndoscope) {
		this.isEndoscope = isEndoscope;
	}
	/**
	 * 获取：是否使用窥镜
	 */
	public Integer getIsEndoscope() {
		return isEndoscope;
	}
	/**
	 * 设置：是否有植入物
	 */
	public void setIsImplants(Integer isImplants) {
		this.isImplants = isImplants;
	}
	/**
	 * 获取：是否有植入物
	 */
	public Integer getIsImplants() {
		return isImplants;
	}
	/**
	 * 设置：失血量
	 */
	public void setBloodLose(String bloodLose) {
		this.bloodLose = bloodLose;
	}
	/**
	 * 获取：失血量
	 */
	public String getBloodLose() {
		return bloodLose;
	}
	/**
	 * 设置：输血量
	 */
	public void setBloodGet(String bloodGet) {
		this.bloodGet = bloodGet;
	}
	/**
	 * 获取：输血量
	 */
	public String getBloodGet() {
		return bloodGet;
	}
	/**
	 * 设置：术后并发症
	 */
	public void setComplication(String complication) {
		this.complication = complication;
	}
	/**
	 * 获取：术后并发症
	 */
	public String getComplication() {
		return complication;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
    public CdcDictionaryEntity getBusSurgType() {
        return busSurgType;
    }
    public void setBusSurgType(CdcDictionaryEntity busSurgType) {
        this.busSurgType = busSurgType;
    }
    public CdcDictionaryEntity getBusSurgStatus() {
        return busSurgStatus;
    }
    public void setBusSurgStatus(CdcDictionaryEntity busSurgStatus) {
        this.busSurgStatus = busSurgStatus;
    }
    public CdcLocationEntity getSurgLoc() {
        return surgLoc;
    }
    public void setSurgLoc(CdcLocationEntity surgLoc) {
        this.surgLoc = surgLoc;
    }
    public CdcUserEntity getSurgDoc() {
        return surgDoc;
    }
    public void setSurgDoc(CdcUserEntity surgDoc) {
        this.surgDoc = surgDoc;
    }
    public CdcDictionaryEntity getBusSurgInci() {
        return busSurgInci;
    }
    public void setBusSurgInci(CdcDictionaryEntity busSurgInci) {
        this.busSurgInci = busSurgInci;
    }
    public CdcDictionaryEntity getBusSurgHeal() {
        return busSurgHeal;
    }
    public void setBusSurgHeal(CdcDictionaryEntity busSurgHeal) {
        this.busSurgHeal = busSurgHeal;
    }
    public CdcDictionaryEntity getBusSurgAnes() {
        return busSurgAnes;
    }
    public void setBusSurgAnes(CdcDictionaryEntity busSurgAnes) {
        this.busSurgAnes = busSurgAnes;
    }
    public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }

	public Integer getIsEmergency() {
		return isEmergency;
	}

	public void setIsEmergency(Integer isEmergency) {
		this.isEmergency = isEmergency;
	}

	public Date getChildBirthDate() {
		return childBirthDate;
	}

	public void setChildBirthDate(Date childBirthDate) {
		this.childBirthDate = childBirthDate;
	}
}
